let that = null;
let app = getApp();
export default {
	data() {
		return {
			load: false,
			info: [],
			appIsAudit: false
		};
	},
	onLoad() {
		that = this;
	},
	onShow() {
		that.appIsAudit = app.globalData.appIsAudit;
		that.getInfo();
	},
	methods: {
		getInfo() {
			let cityData = app.globalData.config.storage.getCurrentCityData();
			let examData = app.globalData.config.storage.getCurrentExamData();
			app.globalData.server
				.getRequest('wxGroup/get', {
					region_id: cityData.id,
					exam_id: examData.id,
				})
				.then((e) => {
					that.info = e.data;
					that.load = true;
				})
				.catch((e) => {
					app.showToast('获取信息失败');
				});
		}
	}
};